<div *ngIf="totalPage > 1" class="hy-page clearfix">
    <ul class="cleafix">
        <li><a href="javascript:;" (click)="goLink(getPageUrl(1), curPage, 1)" title="首页">首页</a></li>
        <li><a href="javascript:;" (click)="goLink(getPageUrl(curPage -1), curPage, curPage-1)" title="上一页">上一页</a></li>
        <li *ngFor="let page of getPageList(total, pageSize, totalPage, curPage)"
            class="hidden-xs {{page.pageNo == curPage ? 'active' : ''}}">
            <a href="javascript:;" (click)="goLink(getPageUrl(page.pageNo), page.pageNo, page.pageNo-1)" class="active">{{page.pageNo}}</a>
        </li>
        <li class="visible-xs"><span class="num">{{curPage}}/{{totalPage}}</span></li>
        <li><a href="javascript:;" (click)="goLink(getPageUrl(curPage + 1), curPage, curPage-1)" title="下一页">下一页</a></li>
        <li><a href="javascript:;" (click)="goLink(getPageUrl(totalPage), curPage, curPage-1)" title="尾页">尾页</a></li>
    </ul>
</div>

